package BasicClass.One;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class BasicOne1 {
    public static void main(String[] args) throws IOException {
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        int size = Integer.parseInt(reader.readLine());
        String[] nums = reader.readLine().split(" ");
        int[] arr = new int[size];
        for (int i = 0; i < size; i++) {
            arr[i]=Integer.parseInt(nums[i]);
        }
        BasicOne1 one1 = new BasicOne1();
        one1.Main(arr);
    }

    /**
     * 冒泡排序
     * @throws IOException
     */
    public void Main(int[] arr) {
        for (int i = arr.length-1; i >= 0; i--) {
            for (int j = arr.length-1; j > 0; j--) {
                if(arr[j-1]>arr[j]){
                    arr[j-1]=arr[j-1]^arr[j];
                    arr[j]=arr[j-1]^arr[j];
                    arr[j-1]=arr[j-1]^arr[j];
                }
            }
        }
        StringBuilder builder = new StringBuilder();
        for (int i = 0; i < arr.length; i++) {
            builder.append(arr[i]+" ");
        }
        System.out.println(builder);
    }
}


